package com.lyc.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.lyc.util.DBUtil;

import java.io.Serializable;
import java.util.Date;

/**
 * @Program: medal
 * @Author: YC
 * @Date: 2022/5/5 16:20
 */

/*获奖信息*/
public class MedalInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    /*获奖编号*/
    @DBUtil.Id
    private Integer medalId;
    /*体育项目编号*/
    private Integer seId;
    /*参赛人员编号*/
    private Integer sportsmanId;
    /*获奖名词*/
    private Integer medalNum;
    /*获奖成绩*/
    private String medalResult;
    /*获奖日期*/
    @JSONField(format = "yyyy-MM-dd")
    private Date medalDate;

    /*无参构造方法*/
    public MedalInfo() {
    }

    /*全参构造方法*/
    public MedalInfo(Integer medalId, Integer seId, Integer sportsmanId, Integer medalNum, String medalResult, Date medalDate) {
        this.medalId = medalId;
        this.seId = seId;
        this.sportsmanId = sportsmanId;
        this.medalNum = medalNum;
        this.medalResult = medalResult;
        this.medalDate = medalDate;
    }

    /*主键构造方法*/
    public MedalInfo(Integer medalId) {
        this.medalId = medalId;
    }

    /*获取获奖编号*/
    public Integer getMedalId() {
        return medalId;
    }

    /*设置获奖编号*/
    public void setMedalId(Integer medalId) {
        this.medalId = medalId;
    }

    /*获取体育项目编号*/
    public Integer getSeId() {
        return seId;
    }

    /*设置体育项目编号*/
    public void setSeId(Integer seId) {
        this.seId = seId;
    }

    /*获取参赛人员编号*/
    public Integer getSportsmanId() {
        return sportsmanId;
    }

    /*设置参赛人员编号*/
    public void setSportsmanId(Integer sportsmanId) {
        this.sportsmanId = sportsmanId;
    }

    /*获取获奖名次*/
    public Integer getMedalNum() {
        return medalNum;
    }

    /*设置获奖名次*/
    public void setMedalNum(Integer medalNum) {
        this.medalNum = medalNum;
    }

    /*获取获奖成绩*/
    public String getMedalResult() {
        return medalResult;
    }

    /*设置获奖成绩*/
    public void setMedalResult(String medalResult) {
        this.medalResult = medalResult;
    }

    /*获取获奖日期*/
    public Date getMedalDate() {
        return medalDate;
    }

    /*设置获奖日期*/
    public void setMedalDate(Date medalDate) {
        this.medalDate = medalDate;
    }

    @Override
    public String toString() {
        return "MedalInfo{" +
                "medalId=" + medalId +
                ", seId=" + seId +
                ", sportsmanId=" + sportsmanId +
                ", medalNum=" + medalNum +
                ", medalResult='" + medalResult + '\'' +
                ", medalDate=" + medalDate +
                '}';
    }
}
